﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RHD.Data.DAO;
using RHD.Data.Model;

namespace RHD.Service.Implementation {
	public class UsersService : GenericService<Users, Int32>, IUsersService {

		#region DAO

		public IUsersDAO _UsersDAO;
		public IUsersDAO UsersDAO {
			set {
				dao = _UsersDAO = value;
			}
		}

		#endregion

		#region IUsersService Members

		public Users GetByEmail(string email) {
			return _UsersDAO.GetByEmail(email);
		}

		public IList<Users> GetAllActiveUser() {
			return _UsersDAO.GetAllActiveUser();
		}

		#endregion
	}
}
